package vp.remedies.dr.home.allmain.remedy.activity;

import vp.remedies.dr.home.R;
import vp.remedies.dr.home.utils.Constantce;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HeartAndVascularProblemsActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.heart_and_vascular_problems);
		setView(Constantce.LANGUAGE_ENGLISH);
	}

	void setView(String language) {
		TextView headerTxt = (TextView) findViewById(R.id.hearderTxt);
		TextView detail1Txt = (TextView) findViewById(R.id.detail1Txt);
		TextView detail2Txt = (TextView) findViewById(R.id.detail2Txt);
		TextView detail3Txt = (TextView) findViewById(R.id.detail3Txt);
		TextView detail4Txt = (TextView) findViewById(R.id.detail4Txt);
		TextView detail5Txt = (TextView) findViewById(R.id.detail5Txt);
		TextView detail6Txt = (TextView) findViewById(R.id.detail6Txt);
		TextView detail7Txt = (TextView) findViewById(R.id.detail7Txt);
		TextView detail8Txt = (TextView) findViewById(R.id.detail8Txt);
		TextView detail9Txt = (TextView) findViewById(R.id.detail9Txt);
		TextView detail10Txt = (TextView) findViewById(R.id.detail10Txt);
		TextView detail11Txt = (TextView) findViewById(R.id.detail11Txt);
		TextView detail12Txt = (TextView) findViewById(R.id.detail12Txt);
		TextView detail13Txt = (TextView) findViewById(R.id.detail13Txt);
		TextView detail14Txt = (TextView) findViewById(R.id.detail14Txt);
		TextView detail15Txt = (TextView) findViewById(R.id.detail15Txt);

		String headerTxtString = null;
		String heart_n_vascular_problems_1 = null;
		String heart_n_vascular_problems_2 = null;
		String heart_n_vascular_problems_3 = null;
		String heart_n_vascular_problems_4 = null;
		String heart_n_vascular_problems_5 = null;
		String heart_n_vascular_problems_6 = null;
		String heart_n_vascular_problems_7 = null;
		String heart_n_vascular_problems_8 = null;
		String heart_n_vascular_problems_9 = null;
		String heart_n_vascular_problems_10 = null;
		String heart_n_vascular_problems_11 = null;
		String heart_n_vascular_problems_12 = null;
		String heart_n_vascular_problems_13 = null;
		String heart_n_vascular_problems_14 = null;
		String heart_n_vascular_problems_15 = null;
		
		if (language.equals(Constantce.LANGUAGE_HINDI)) {
			headerTxtString = getResources().getString(
					R.string.heart_n_vascular_problems_header_hi);
			heart_n_vascular_problems_1 = getResources().getString(
					R.string.heart_n_vascular_problems_1_hi);
			heart_n_vascular_problems_2 = getResources().getString(
					R.string.heart_n_vascular_problems_2_hi);
			heart_n_vascular_problems_3 = getResources().getString(
					R.string.heart_n_vascular_problems_3_hi);
			heart_n_vascular_problems_4 = getResources().getString(
					R.string.heart_n_vascular_problems_4_hi);
			heart_n_vascular_problems_5 = getResources().getString(
					R.string.heart_n_vascular_problems_5_hi);
			heart_n_vascular_problems_6 = getResources().getString(
					R.string.heart_n_vascular_problems_6_hi);
			heart_n_vascular_problems_7 = getResources().getString(
					R.string.heart_n_vascular_problems_7_hi);
			heart_n_vascular_problems_8 = getResources().getString(
					R.string.heart_n_vascular_problems_8_hi);
			heart_n_vascular_problems_9 = getResources().getString(
					R.string.heart_n_vascular_problems_9_hi);
			heart_n_vascular_problems_10 = getResources().getString(
					R.string.heart_n_vascular_problems_10_hi);
			heart_n_vascular_problems_11 = getResources().getString(
					R.string.heart_n_vascular_problems_11_hi);
			heart_n_vascular_problems_12 = getResources().getString(
					R.string.heart_n_vascular_problems_12_hi);
			heart_n_vascular_problems_13 = getResources().getString(
					R.string.heart_n_vascular_problems_13_hi);
			heart_n_vascular_problems_14 = getResources().getString(
					R.string.heart_n_vascular_problems_14_hi);
			heart_n_vascular_problems_15 = getResources().getString(
					R.string.heart_n_vascular_problems_15_hi);
		} else {
			headerTxtString = getResources().getString(
					R.string.heart_n_vascular_problems_header_en);
			heart_n_vascular_problems_1 = getResources().getString(
					R.string.heart_n_vascular_problems_1_en);
			heart_n_vascular_problems_2 = getResources().getString(
					R.string.heart_n_vascular_problems_2_en);
			heart_n_vascular_problems_3 = getResources().getString(
					R.string.heart_n_vascular_problems_3_en);
			heart_n_vascular_problems_4 = getResources().getString(
					R.string.heart_n_vascular_problems_4_en);
			heart_n_vascular_problems_5 = getResources().getString(
					R.string.heart_n_vascular_problems_5_en);
			heart_n_vascular_problems_6 = getResources().getString(
					R.string.heart_n_vascular_problems_6_en);
			heart_n_vascular_problems_7 = getResources().getString(
					R.string.heart_n_vascular_problems_7_en);
			heart_n_vascular_problems_8 = getResources().getString(
					R.string.heart_n_vascular_problems_8_en);
			heart_n_vascular_problems_9 = getResources().getString(
					R.string.heart_n_vascular_problems_9_en);
			heart_n_vascular_problems_10 = getResources().getString(
					R.string.heart_n_vascular_problems_10_en);
			heart_n_vascular_problems_11 = getResources().getString(
					R.string.heart_n_vascular_problems_11_en);
			heart_n_vascular_problems_12 = getResources().getString(
					R.string.heart_n_vascular_problems_12_en);
			heart_n_vascular_problems_13 = getResources().getString(
					R.string.heart_n_vascular_problems_13_en);
			heart_n_vascular_problems_14 = getResources().getString(
					R.string.heart_n_vascular_problems_14_en);
			heart_n_vascular_problems_15 = getResources().getString(
					R.string.heart_n_vascular_problems_15_en);
		}
		headerTxt.setText(headerTxtString);
		detail1Txt.setText(heart_n_vascular_problems_1);
		detail2Txt.setText(heart_n_vascular_problems_2);
		detail3Txt.setText(heart_n_vascular_problems_3);
		detail4Txt.setText(heart_n_vascular_problems_4);
		detail5Txt.setText(heart_n_vascular_problems_5);
		detail6Txt.setText(heart_n_vascular_problems_6);
		detail7Txt.setText(heart_n_vascular_problems_7);
		detail8Txt.setText(heart_n_vascular_problems_8);
		detail9Txt.setText(heart_n_vascular_problems_9);
		detail10Txt.setText(heart_n_vascular_problems_10);
		detail11Txt.setText(heart_n_vascular_problems_11);
		detail12Txt.setText(heart_n_vascular_problems_12);
		detail13Txt.setText(heart_n_vascular_problems_13);
		detail14Txt.setText(heart_n_vascular_problems_14);
		detail15Txt.setText(heart_n_vascular_problems_15);

	}
}